package com.qf.controller;


import com.qf.IBrandService;
import com.qf.model.Result;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/Brand")
public class BrandController {
    private IBrandService brandService;

    public BrandController(IBrandService brandService) {
        this.brandService = brandService;
    }

    @GetMapping("/list")
    public Result getPageData(@RequestParam(defaultValue = "1") Integer page,
                              @RequestParam(defaultValue = "5") Integer pageSize) {
        return brandService.findAllBrand(page, pageSize);
    }




}
